<html><head><title>ScrollMaterial</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ScrollMaterial()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>ScrollMaterial</b></font>(#Material, x, y, Mode [, Layer])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Scrolls the material layer according to x,y values. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#Material</i></td>
<td width="90%"> 
The material to use. 

</td></tr>
<tr><td><i>x, y</i></td>
<td> 
The texture scroll offset, in pixels. 

</td></tr>
<tr><td><i>Mode</i></td>
<td> 
It can be one of the following value: 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_Material_Fixed</font>   : The material is scrolled of the specified x,y offset, without regards of the previous scroll function.
  <font color="#924B72">#PB_Material_Animated</font>: Each frame is the material is scrolled of the specified x,y offset automatically.
</font></pre>

</td></tr>
<tr><td><i>Layer (optional)</i></td>
<td> 
The layer to scroll. The first layer is zero. If this parameter is omitted, the layer zero is scrolled. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Remarks</b></p><blockquote>

To get the current scroll values, use <a href="getmaterialattribute.html">GetMaterialAttribute()</a>. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="getmaterialattribute.html">GetMaterialAttribute()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=scalematerial.html>ScaleMaterial()</a> - <a href=index.html>Material Index</a> - <a href=setmaterialattribute.html>SetMaterialAttribute()</a> ->

</body></html>